@prefix-cls: ~'inbiz-News';
.@{prefix-cls} {
  min-height: 32px;
  font-size: 14px;

  .ant-card-hoverable {
    cursor: auto;
  }

  &-card {
    &-img {
      height: 150px;
    }
  }

  .eform-new-list {
    .slick-slide > div {
      width: 100%;
    }
    .ant-list-item,
    .slick-slide {
      display: flex;
      width: 100%;
      overflow: hidden;
      .inbiz-News-title {
        display: flex;
        flex: 1;
        align-items: center;
        width: 100%;
        height: 26px;
        margin: 9px 0 15px;
        overflow: hidden;
        color: var(--inbiz-color-heading);
        font-size: 20px;
        cursor: pointer;
        &-static {
          font-size: var(--inbiz-font-size-base);
        }
        > span {
          white-space: nowrap;
        }
        > svg {
          margin-right: 4px;
          circle,
          path,
          rect {
            fill: var(--inbiz-color-heading);
          }
        }
        &:hover {
          color: var(--inbiz-color-primary);
          circle,
          path,
          rect {
            fill: var(--inbiz-color-primary);
          }
        }
        .content-static {
          margin-left: 5px;
        }
        .inbiz-News-title-content {
          display: flex;
          align-items: center;
          width: 100%;
          overflow: hidden;
          .inbiz-News-title-nav {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            line-height: 26px;
          }
          .inbiz-News-title-tag {
            line-height: normal;
            span {
              margin-left: 10px;
              display: inline-block;
              font-size: 33px;
              border-radius: var(--inbiz-border-radius-base);
              // position: relative;
              // top: 1px;
            }
          }
        }
      }
      .ant-list-item-action {
        margin-left: 10px;
        li {
          padding-right: 0;
          .inbiz-News-source {
            width: auto;
          }
        }
      }
      .inbiz-News-summary {
        display: flex;
        width: 100%;
        overflow: hidden;
        .inbiz-News-summary-content {
          flex: 1;
          overflow: hidden;
          color: var(--inbiz-color-text);
          .inbiz-News-summary-content-zaiyao {
            min-height: 66px;
            overflow: hidden;
            font-size: var(--inbiz-font-size-base);
            .ant-typography {
              margin-bottom: 0;
              color: var(--inbiz-color-text);
            }
          }
        }
      }
    }
    .inbiz-new-static-list-item {
      .ant-list-item {
        padding: 8px 0;
        .inbiz-News-title-static {
          margin: 0;
        }
      }
    }
    .ant-card-meta-detail {
      width: 100%;
    }
    .inbiz-new-card-list {
      .ant-list-item {
        overflow: inherit;
        border-bottom: none;
        &:hover {
          .inbiz-News-title {
            color: var(--inbiz-color-primary);
          }
        }
      }
    }
    .ant-list-pagination {
      margin-top: 0;
      padding: 8px 0;
      .ant-pagination .ant-pagination-item-link {
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }
    .news-list-see-more {
      margin-bottom: 0;
      padding: 8px 0;
      text-align: end;
      > span {
        color: var(--inbiz-color-primary);
        font-size: var(--inbiz-font-size-base);
        cursor: pointer;
      }
    }
  }

  .ant-list-item {
    border-bottom: none;
  }
  .ant-card-bordered .ant-card-cover {
    margin: 0;
  }
  .ant-card-cover {
    border-bottom: none;
    cursor: pointer;
  }
  .width-fixed {
    width: 120px;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
    text-overflow: ellipsis;
  }
  &-summary-card {
    div.ant-typography {
      height: 41px;
      margin-bottom: 0;
      color: var(--inbiz-color-text);
      font-size: 14px;
      line-height: 22px;
    }
  }
  &-source {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: var(--inbiz-color-secondary-text);
    font-size: 12px;
    span {
      display: inline-block;
      margin-left: 8px;
      white-space: nowrap;
      &:first-child {
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }
  &-source-card {
    justify-content: flex-end;
  }
  .ant-list-items,
  .ant-list-item {
    width: 100%;
  }
  &-summary {
    display: flex;
    flex-direction: row;
    width: 100%;
    font-size: 14px;
    &_img_wrapper {
      width: 200px;
      height: 150px;
      margin-right: 40px;
      overflow: hidden;
    }
    &_content {
      width: calc(100% - 200px);
      & > div {
        width: 100%;
      }
    }
    &-img {
      transition: all 0.3s linear;
    }
    &-img:hover {
      transform: scale(1.1);
    }
    .@{prefix-cls}-title {
      max-width: 100%;
      margin-bottom: 16px;
      font-size: 16px;
      &-content {
        & > div:first-child {
          white-space: unset;
          word-break: break-all;
        }
      }
    }
    .@{prefix-cls}-source:first-child {
      margin-top: 8px;
      margin-left: 0;
    }
    img {
      width: 200px;
      height: 150px;
    }
  }
  &-smallCard,
  &-bigCard {
    .ant-card-meta-detail {
      width: calc(100% - 20px);
    }
    .ant-list-items {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      width: calc(100% + 16px);
      .ant-list-item {
        margin-right: 16px;
        .ant-card-body {
          padding: 25px 20px;
        }
      }
    }
    .@{prefix-cls}-title {
      width: 100%;
      height: 65px;
    }
    .ant-card-body .ant-card-meta .ant-card-meta-detail .ant-card-meta-title .inbiz-News-title {
      margin: 0;
    }
    .ant-card-body,
    .ant-card-meta,
    .ant-card-meta-detail,
    .ant-card-meta-title,
    .inbiz-News-title {
      overflow: visible !important;
    }
    .ant-card {
      width: 100%;
    }
  }
  &-bigCard .ant-card-meta-detail {
    .ant-card-meta-title {
      margin-bottom: 15px;
    }
    .inbiz-News-summary-card {
      margin-bottom: 10px;
    }
  }
  &-smallCard .ant-card-meta-detail {
    .ant-card-meta-title {
      margin-bottom: 12px;
    }
    .inbiz-News-summary-card {
      margin-bottom: 12px;
    }
  }
  &-smallCard {
    .ant-list-items {
      .ant-list-item {
        flex-basis: 300px;
        flex-grow: 0;
        flex-shrink: 0;
        width: 300px;
      }
    }
  }
  &-bigCard {
    .ant-list-items {
      .ant-list-item {
        flex-basis: 400px;
        flex-grow: 0;
        flex-shrink: 0;
        width: 400px;
        .ant-card {
          width: 100%;
        }
      }
    }
  }
  &-detail-wrapper {
    width: 100%;
    overflow: auto;
    color: var(--inbiz-color-text);
    &-box {
      display: flex;
      max-width: 1132px;
      margin: 0 auto;
    }
    &-main {
      min-width: 500px;
      max-width: 800px;
      flex: 1;
      &-title {
        margin-bottom: 30px;
        color: var(--inbiz-color-heading);
        font-weight: 500;
        font-size: 24px;
        line-height: 31px;
      }
      &-summary {
        margin-bottom: 15px;
        color: var(--inbiz-color-text);
        font-size: var(--inbiz-font-size-base);
        line-height: 21px;
      }
      &-source {
        padding-bottom: 20px;
        color: var(--inbiz-color-secondary-text);
        font-size: 12px;
        line-height: 16px;
        border-bottom: 1px solid var(--inbiz-color-border-base);
      }
      &-content {
        margin-top: 30px;
        color: var(--inbiz-color-text);
        font-size: var(--inbiz-font-size-base);
        line-height: 24px;
        img {
          max-width: 100%;
        }
      }
    }
    &-more {
      flex-grow: 0;
      flex-shrink: 0;
      width: 300px;
      height: fit-content;
      margin-left: 32px;
      padding: 20px;
      background-color: #f8f8f8;
      border-radius: 4px;
      &-title {
        color: var(--inbiz-color-primary);
        font-weight: 500;
        font-size: 16px;
      }
      ul {
        width: 100%;
      }
      li {
        width: 100%;
        padding: 4px;
        overflow: hidden;
        color: var(--inbiz-color-text);
        font-size: var(--inbiz-font-size-base);
        line-height: 31px;
        white-space: nowrap;
        text-overflow: ellipsis;
        border-bottom: 1px solid var(--inbiz-color-border-base);
        cursor: pointer;
        &:hover {
          color: var(--inbiz-color-link);
        }
      }
    }
  }
  &-roll-view {
    .slick-next,
    .slick-prev {
      display: none !important;
    }
    &:hover {
      .slick-next,
      .slick-prev {
        display: flex !important;
      }
    }
    .rasume-dots {
      bottom: 0;
      justify-content: flex-end;
      height: 6px;
      margin-right: 0;
      li {
        width: 10px;
        button {
          width: 6px;
          height: 6px;
          background: #ddd;
          border-radius: 3px;
          opacity: 1;
        }
      }
      li.slick-active {
        width: 10px;
        button {
          background-color: var(--inbiz-color-primary);
        }
      }
    }
  }
  &-resume {
    .ant-list-item {
      padding: 20px 0;
      border-bottom: 1px solid var(--inbiz-color-border-base);
    }
  }
  .inbiz-cTitle {
    border: none !important;
  }
  &-list-roll {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 8px;
  }
  &_roll_list {
    width: 100%;
    overflow: hidden;
    &_content {
      width: 100%;
      height: auto;
      transition: all 0.5s ease-in-out;
    }
  }
  .ant-carousel .slick-prev,
  .ant-carousel .slick-prev:hover .ant-carousel .slick-next,
  .ant-carousel .slick-next:hover {
    color: currentColor;
    font-size: inherit;
  }

  .text-ellipsis {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .ant-carousel .slick-prev,
  .ant-carousel .slick-next,
  .ant-carousel .slick-prev:hover,
  .ant-carousel .slick-next:hover,
  .ant-carousel .slick-prev:focus,
  .ant-carousel .slick-next:focus {
    z-index: 1;
    color: currentColor !important;
    font-size: inherit;
    cursor: pointer;
  }

  .ant-carousel .slick-prev::before {
    color: currentColor !important;
  }

  .slick-arrow.slick-prev {
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: 0;
    margin-left: 32px;
    padding-right: 4px;
    font-size: 24px !important;
    background: #e8e8e8;
    border-radius: 50%;
    transform: translateY(-50%);
    > svg {
      fill: #999;
    }
    &::before {
      display: none;
    }
    &:hover {
      background: #e2e2e2;
      > svg {
        fill: #888;
      }
    }
  }

  .ant-carousel .slick-next::before {
    color: currentColor !important;
  }

  .slick-arrow.slick-next {
    right: 8px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: 0;
    padding-left: 4px;
    font-size: 24px !important;
    background: #e8e8e8;
    border-radius: 50%;
    transform: translateY(-50%);
    > svg {
      fill: #999;
    }
    &::before {
      display: none;
    }
    &:hover {
      background: #e2e2e2;
      > svg {
        fill: #888;
      }
    }
  }
  .ant-list-split.ant-list-something-after-last-item
    .ant-spin-container
    > .ant-list-items
    > .ant-list-item:last-child {
    border-bottom: none;
  }
}

.inbiz-News-detail {
  pointer-events: auto;
}

